import login from '../views/login.vue'
import notFound from '../views/404.vue'
import home from '../views/home.vue'
import userList from '../views/userList.vue'
import account from '../views/nav1/account.vue'
import price from '../views/nav1/price.vue'
import onMarket from '../views/nav1/onMarket.vue'


let routes = [
    {
        path: '/login',
        component: login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: notFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: home,
        name: 'admin',
        iconCls: 'el-icon-user-solid',//图标样式class
        children: [
            { path: '/userList', component: userList, name: '用户列表' },
        ]
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: home,
        name: '功能',
        iconCls: 'el-icon-s-cooperation',//图标样式class
        children: [
            { path: '/account', component: account, name: '账号' },
            { path: '/price', component: price, name: '价格' },
            { path: '/onMarket', component: onMarket, name: '待出售' },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;
